package punchdownloader.threads;

/**
 *
 * @author Kennedy
 */
public class Util {

    public Thread getThreadInstance(String nome) {
        Thread[] threads_ativas = new Thread[Thread.activeCount()];
        for (int i = 0; i < threads_ativas.length; i++) {
            if (threads_ativas[i].getName().equalsIgnoreCase(nome)) {
                return threads_ativas[i];
            }
        }
        return null;
    }
}
